import java.util.Scanner;

public class Solution {
    static String b = "";
    public static int m(int a){
        binarySearch(a,-90,90);
        return Integer.valueOf(b);
    }
    public static void binarySearch(int a,int start, int end){
        if(start>end)return;
        int mid = (start+end)/2;
        if(a<mid){
            b = b+"0";
            if(b.length()>=6)
                return;
            binarySearch(a,start,mid);
        }else{
            b = b+"1";
            if(b.length()>=6)
                return;
            binarySearch(a,mid,end);
        }
    }

    public static void main(String args[]){
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        m(a);
        System.out.println(b);
    }

}

